/**
 * Copyright (C)  Gadglet .
 *
 * This file is part of Gadglet
 *
 * Gadglet is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * Gadglet is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with Gadglet. If not, see <http://www.gnu.org/licenses/>.
 */

package com.gadglet.params;

public enum ReqErrorTypes {

	CONTENT_EXCEED_MAX_LENGTH			("gadgetMsgContentMaxLength"),
	DOMAIN_ACCOUNT_EXCEED_USERS_QUATA	("gadgetMsgDomainExceedUsersQuata"),
	ITEM_NOT_FOUND						("gadgetMsgUserItemNotFound"),
	ITEMS_NUM_EXCEED_USER_QUOTA			("gadgetMsgItemsNumUserQuota"),
	MISSING_ARGUMENT					("gadgetMsgMissingArgument"),
	PROFILE_DOESNT_EXISTS				("gadgetMsgProfileDoesntExists"),
	REQUEST_FAILED						("gadgetMsgUserRequestFail"),
	UNAUTHORIZED_OPERATION 				("gadgetMsgUserUnAuthorizedOperation"),
	UNRECOGNIZED_ACTION 				("gadgetMsgUnrecognizedActionType"),
	UNRECOGNIZED_GADGET					("gadgetMsgUnrecognizedGadget"),
	UNSUPPORETED_PLATFORM				("gadgetMsgUnsupportedPlatfom"),
	USER_MISSING_ACCOUNT				("gadgetMsgUserHasNoAccount"),
	USER_NOT_ACTIVE						("gadgetMsgUserIsNotActiveStatus"),
	USER_NOT_LOGGEDIN 					("gadgetMsgUserNotLoggedIn"),
	USER_NOT_REGISTERED					("gadgetMsgUserIsNotRegistered");
	
	private String errorNessage;
	
	ReqErrorTypes(String serverErrorType){
		this.errorNessage = serverErrorType;
	}
	
	public String getErrorMessage(){
		return this.errorNessage;
	}
	
	
}
